﻿using System.Linq;
using System.Web.Routing;
using Actya.Web.Infrastructure;

namespace Actya.Web.Mvc
{
	public static class RouteCollectionExtensions
	{
		public static bool ContainsRoutesApartFromCmsAdminRoute(this RouteCollection routes)
		{
			return routes.Count > 1 && routes[Constants.CmsAdminAreaRouteName] != null;
		}
	}
}